// 导入封装的请求实例
import request from '@/utils/request'
// 请求方法
export const getsysUserListApi = params => {
  // params 提交的是 { sysUserdesc:'',sysUsername:'',page:'', limit:''}
  return request({
    url: '/admin/sys_user/list',
    method: 'get',
    params
  })
}
// 查询单个
// /admin/sys_user/rowInfo?id=142
export const getsysUserInfoApi = params => {
  // params 提交的是 { id:142}
  return request({
    url: '/admin/sys_user/rowInfo',
    method: 'get',
    params
  })
}

// 添加
// /admin/sys_user/add
export const addsysUserInfoApi = data => {
  return request({
    url: '/admin/sys_user/add',
    method: 'post',
    data
  })
}
// 修改
// /admin/sys_user/update
export const updatesysUserInfoApi = data => {
  return request({
    url: '/admin/sys_user/update',
    method: 'post',
    data
  })
}
// 删除
// /admin/sys_user/del
//  { id:142}
export const delsysUserInfoApi = params => {
  return request({
    url: '/admin/sys_user/del',
    method: 'get',
    params
  })
}
